package com.JieCheng.service;

import com.JieCheng.dao.model.User;
import jxl.read.biff.BiffException;
import org.springframework.ui.Model;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by Zhang on 2017/5/9.
 */
public interface UserService {

    String checkUser(String loginName, String passWord, String page, Model model,HttpServletRequest httpServletRequest);
    /*
    通过登录名获取用户
     */
    User getUserByLoginName(String loginName);
    /*
    修改密码
     */
    String modifyPassWord(HttpServletRequest httpServletRequest);
    /*
    导出人员模板
    */
    String exportUserTemplet(HttpServletRequest httpServletRequest,HttpServletResponse httpServletResponse) throws Exception;
    /*
    导入数据
    */
    String importTemplet(MultipartFile file, HttpServletRequest httpServletRequest) throws IOException, BiffException;
}
